package com.huatu.tiku.athletics.web.core;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

import com.huatu.tiku.athletics.model.Player;

public class ConnectedPlayers {
	//tcp的状态性
	private static Map<String,Player> players = new ConcurrentHashMap<String,Player>();
	
	public static void addPlayer(String sessionId,Player player){
		players.put(sessionId, player);
	}
	
	public static void removePlayer(String sessionId){
		players.remove(sessionId);
		//根据用户状态判断，移除其他的引用
	}
}
